package com.ansuenjob.util;

import java.io.IOException;
import java.net.URLDecoder;

import sun.misc.BASE64Decoder;

public class SecUtil {
	private static byte[] key = {2,0,1,2,0,4,0,1};
	static {
		DES.initStr("93969440");
	}
	
	public static String deCode(String mi) throws Exception {
		//String strmi = URLDecoder.decode(mi, "UTF-8");
		BASE64Decoder base64De = new BASE64Decoder();
		byte[] bytmi = base64De.decodeBuffer(mi);
		byte[] bytMing = DES.decrypt(bytmi, key);
		return new String(bytMing, "UTF-8");
	}
}
